﻿using System;
using AppCommon;

public partial class admincenter_AddUser : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session[Constants.S_ADMIN_USER] != null)
            {
                // Ok
            }
            else
            {
                Response.Redirect("~/admincenter/");
            }

            BindDatatoDDL.BindUserRole(ddlUserRole);                   
        }        
    }

    protected void btnThemvao_OnClick(object sender, EventArgs e)
    {
        var tmp = Request.Form[ddlUserRole.UniqueID];        
    }

    protected void ddlUserRole_OnSelectedIndexChanged(object sender, EventArgs e)
    {
        var tmp = ddlUserRole.SelectedItem.Value;
        var ind = ddlUserRole.SelectedValue;
    }
}